import request from '../request/utils/request'

/***
 * 后面每次请求都要携带 token
 */
export const findUserList = (current, size, userVO) => {
  return request({
    url: 'user/findUserPage',
    method: 'post',
    params: {
      'currentPage': current,
      'pageSize': size
    },
    data: userVO
  })
}

/***
 *  删除头像
 */
export const deleteImage = (oldImage) => {
  return request({
    url: 'system/deleteimg',
    method: 'get',
    params: {
      'oldImage': oldImage,
    }
  })
}
/**
 *  添加用户
 */
export const saveUser = (user) => {
  return request({
    url: 'user/add',
    method: 'post',
    data: user
  })
}
